package com.springcloud.controller;

import com.springcloud.model.SysRoleResource;
import com.springcloud.service.ISysRoleResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 *
 * ClsTradeOrder 控制层
 *
 */
@Controller
public class testController {

    @Autowired
    ISysRoleResourceService service;

    @RequestMapping(value = "/test", produces = "application/json")
    @ResponseBody
    public Object test() {
        SysRoleResource s = service.selectById(158);
        return s;
    }

}